{include "header.tpl"}
<form rel="ajax" method="post" action="{$formUrl}" class="form-horizontal" role="form">
    <div class="form-group form-group-sm">
        <label class="col-sm-3 control-label p-r-n">用户组名称：</label>
        <div class="col-sm-5 p-l-n">
            <input name="title" value="{$info.title}" class="form-control" placeholder="用户组名称"/>
        </div>
    </div>
    <div class="form-group form-group-sm">
        <label class="col-sm-3 control-label p-r-n">用户组权限设置：</label>
        <div class="col-sm-5 p-l-n">
            {foreach from=$permission key=key item=item}
                <label><input type="checkbox" name="permission[]" value="{$key}"{if in_array($key,$info.permission)} checked="checked"{/if}/> {$item}</label>
            {/foreach}
        </div>
    </div>
    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">&nbsp;</label>
        <div class="col-sm-3">
            <input type="hidden" name="id" value="{$info.id}"/>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </div>
</form>
{include "footer.tpl"}